#include"thread.hpp"
#include<unistd.h>
#include<cstdio>

void* func(void*){
    int cnt = 10;
    while(cnt--) {
        printf("this is a text\n");
        sleep(1);
    }
    return nullptr;
}
int main(){

    thread t(func,nullptr);
    t.join();
    printf("on success thread t");

    return 0;
}